package backend.ro.msg.gillardon.timer;

import javax.ejb.Schedule;
import javax.ejb.Schedules;
import javax.ejb.Singleton;

import org.apache.log4j.Logger;

@Singleton
public class Timer1 {

  private static final Logger LOG = Logger.getLogger(Timer1.class);

  public Timer1() {
  }

  @Schedules({
    @Schedule(second = "5", minute = "15", hour = "14", persistent = false),
    @Schedule(second = "55", minute = "15", hour = "14", persistent = false)
  })
  public void trigeredMethod() {
    LOG.debug("Timer1: " + System.currentTimeMillis());
  }

}
